package cn.lzj.listener;

import cn.lzj.pojo.ProductBase;
import cn.lzj.pojo.ProductType;
import org.springframework.context.ApplicationListener;

import java.util.List;


public class indexStartEventListener implements ApplicationListener<indexStartEvent> {

    //完成首页的信息加载
    @Override
    public void onApplicationEvent(indexStartEvent event) {

//        List<ProductBase> indexProductBases = event.getIndexProductBase();
//        List<ProductType> indexProductTypes = event.getIndexProductType();

        //缓存机制

        event.print();
    }
}
